package com.demohomework.homeworkdemo.pojo;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class Assignment {
    // 该类用于表示作业的属性和相关信息
    @NotNull(groups = { Update.class})
    private Integer id; // 作业ID
    private Integer courseId; // 课程ID
    private Integer teacherId; // 教师ID
    @NotEmpty(groups = { Add.class, Update.class})
    private String title; // 作业标题
    @NotEmpty(groups = { Add.class, Update.class})
    private String description; // 作业描述
    private int overdue; // 是否过期
    private int isScore; //是否互评
    private LocalDateTime dueDate; // 截止日期
    private LocalDateTime createdAt; // 创建时间
    private LocalDateTime updatedAt; // 更新时间


    public interface Add{

    }

    public  interface   Update{

    }
}
